<template>
    <div class="add-ques-item-idle">
      <div class="border-radius-md" @mouseover="hover" @mouseleave="blur" style="border: 1px solid #99909399;width: 1000px;height: 150px">
        <div v-if="hovered">
          <div style="margin-top: 60px">
            <el-button @click="chooseSingleSelectQues">单选题</el-button>
            <el-button @click="chooseMultiSelectQues">多选题</el-button>
          </div>
        </div>
        <div v-else>
          <div class="border-radius-circle brand center-block" style="width: 30px;height: 30px;line-height: 30px;margin-top: 50px">
            <i class="el-icon-plus font-lg" style="vertical-align: middle;color: white;display: inline-block" />
          </div>
          <div>
            创建新的大题
          </div>
        </div>
      </div>
    </div>
</template>

<script>
import Ques from '../../../converts/question/QuestionConst'
export default {
  data () {
    return {
      content: '创建新的大题',
      hovered: false
    }
  },
  methods: {
    hover () {
      this.hovered = true
    },
    blur () {
      this.hovered = false
    },
    chooseSingleSelectQues () {
      this.$bus.$emit('show-choose-ques-dialog', Ques.TYPE.SINGLE_INT)
    },
    chooseMultiSelectQues () {
      this.$bus.$emit('show-choose-ques-dialog', Ques.TYPE.MULTI_INT)
    }
  }
}
</script>

<style scoped lang="less">
  .add-ques-item-idle {
    margin: 10px 0;
  }
</style>
